home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / unix_b6w.mak < prev    next >
Encoding:
Makefile  |  1991-01-04  |  23.9 KB  |  735 lines

  1. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/cc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30. # `pwd` means use the directory in which the 'make' is being done.
  31.  
  32. GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
  33.  
  34. # Choose generic configuration options.
  35.  
  36. # -DDEBUG
  37. #    includes debugging features (-Z switch) in the code.
  38. #      Code runs substantially slower even if no debugging switches
  39. #      are set.
  40. # -DNOPRIVATE
  41. #    makes private (static) procedures and variables public,
  42. #      so they are visible to the debugger and profiler.
  43. #      No execution time or space penalty.
  44.  
  45. GENOPT=
  46.  
  47. # ------ Platform-specific options ------ #
  48.  
  49. # Define the other compilation flags.
  50. # Add -DBSD4_2 for 4.2bsd systems.
  51. # Add -DSYSV for System V.
  52.  
  53. CFLAGS=-O
  54.  
  55. # Define platform flags for ld.
  56. # Most Unix systems accept -X, but some don't.
  57. # Sun OS4.n needs -Bstatic.
  58.  
  59. LDPLAT=-X
  60.  
  61. # Define any extra libraries to link into the executable.
  62. # The default is for X Windows.
  63.  
  64. EXTRALIBS= -lX11
  65.  
  66. # --------------------------- Choice of devices --------------------------- #
  67.  
  68. # Choose the device(s) to include.  See gdevs.mak for details.
  69.  
  70. DEVICES=x11
  71. DEVICE_OBJS=$(x11_)
  72.  
  73. # ---------------------------- End of options --------------------------- #
  74.  
  75. # Define the name of the makefile -- used in dependencies.
  76.  
  77. MAKEFILE=unix-cc.mak
  78.  
  79. # Define the extensions for the object and executable files.
  80.  
  81. OBJ=o
  82. XE=
  83.  
  84. # Define the ANSI-to-K&R dependency.
  85.  
  86. AK=ansi2knr$(XE)
  87.  
  88. # Define the directory separator and shell quote string.
  89.  
  90. DS=/
  91. Q=\"
  92.  
  93. # Define the compilation rules and flags.
  94.  
  95. CCFLAGS=$(GENOPT) $(CFLAGS)
  96.  
  97. .c.o:
  98.     ./ansi2knr $*.c _temp_.c
  99.     $(CC) $(CCFLAGS) -c _temp_.c
  100.     mv _temp_.o $*.o
  101.  
  102. CCA=./ccgs "$(CC) $(CCFLAGS)" _temp_.c
  103. CCNA=$(CCA)
  104. CCINT=$(CCA)
  105.  
  106. # --------------------------- Generic makefile ---------------------------- #
  107.  
  108. # The remainder of the makefile (ghost.mak, gdevs.mak, and unixtail.mak)
  109. # is generic.  tar_gs concatenates all these together.
  110. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  111. #    Distributed by Free Software Foundation, Inc.
  112. #
  113. # This file is part of Ghostscript.
  114. #
  115. # Ghostscript is distributed in the hope that it will be useful, but
  116. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  117. # to anyone for the consequences of using it or for whether it serves any
  118. # particular purpose or works at all, unless he says so in writing.  Refer
  119. # to the Ghostscript General Public License for full details.
  120. #
  121. # Everyone is granted permission to copy, modify and redistribute
  122. # Ghostscript, but only under the conditions described in the Ghostscript
  123. # General Public License.  A copy of this license is supposed to have been
  124. # given to you along with Ghostscript so you can know your rights and
  125. # responsibilities.  It should be in a file named COPYING.  Among other
  126. # things, the copyright notice and this notice must be preserved on all
  127. # copies.
  128.  
  129. # Generic makefile for Ghostscript.
  130. # The platform-specific makefiles 'include' this file.
  131. # They define the following symbols:
  132. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  133. #        initialization and font files at run time.
  134. #    Q - the string that causes the shell to pass a " to a program
  135. #        (" on MS-DOS, \" on Unix).
  136. #    XE - the extension for executable files (e.g., null or .exe).
  137. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  138. #    CCA - the ANSI C invocation for normal compilation.
  139. #    CCNA - the non-ANSI C invocation for files that on some platforms
  140. #        include in-line assembly code or other non-standard
  141. #        constructs.  Currently this is needed on every file that
  142. #        includes sstorei.h, and a few files that use Turbo C
  143. #        "short pointer" constructs.
  144. #    CCINT - the C invocation for compiling the main interpreter module,
  145. #        normally the same as CCNA: this is needed because the
  146. #        Borland compiler generates *worse* code for this module
  147. #        (but only this module) when optimization (-O) is turned on.
  148. #    AK - if source files must be converted from ANSI to K&R syntax,
  149. #        this is ansi2knr$(XE); if not, it is null.
  150. #    DS - the directory separator (/ or \).
  151. # The platform-specific makefiles must also include rules for creating
  152. #   ansi2knr$(XE) and genarch$(XE) from the corresponding .c files,
  153. #   and for making arch.h by executing genarch$(XE).  (This
  154. #   shouldn't really be necessary, but Turbo C and Unix C treat the -o
  155. #   switch slightly differently (Turbo C requires no following space,
  156. #   Unix C requires a following space), and I haven't found a way to capture
  157. #   the difference in a macro; also, Unix requires ./ because . may not be
  158. #   in the search path, whereas MS-DOS always looks in the current
  159. #   directory first.)
  160.  
  161. default: gs$(XE)
  162.  
  163. test: gt$(XE)
  164.  
  165. clean:
  166.     rm -f *.$(OBJ) *.a core gmon.out
  167.     rm -f *.dev gdevs.h gdevs.tl
  168.     rm -f t _temp_* _temp_*.* libc*.tl *.map *.sym
  169.     rm -f ansi2knr$(XE) genarch$(XE) arch.h gs$(XE)
  170.  
  171. # Note: Unix uses malloc.h and memory.h;
  172. # Turbo C uses alloc.h, stdlib.h, and mem.h.
  173. # 4.2bsd uses strings.h; other systems use string.h.
  174. # gcc on VMS doesn't have a math.h.
  175. # We handle this by using local include files called
  176. # malloc_.h, math_.h, memory_.h, and string_.h
  177. # that perform appropriate indirection.
  178.  
  179. # Auxiliary programs
  180.  
  181. arch.h: genarch$(XE)
  182.     .$(DS)genarch
  183.  
  184. # -------------------------------- Library -------------------------------- #
  185.  
  186. GX=$(AK) std.h gx.h
  187. GXERR=$(GX) gserrors.h
  188.  
  189. ###### High-level facilities
  190.  
  191. gschar.$(OBJ): gschar.c $(GXERR) \
  192.   gxfixed.h gxarith.h gxmatrix.h gzdevice.h gxdevmem.h gxfont.h gxchar.h gstype1.h gzpath.h gzcolor.h gzstate.h
  193.  
  194. gscolor.$(OBJ): gscolor.c $(GXERR) \
  195.   gxfixed.h gxmatrix.h gxdevice.h gzstate.h gzcolor.h gzht.h
  196.  
  197. gscoord.$(OBJ): gscoord.c $(GXERR) \
  198.   gxfixed.h gxmatrix.h gzdevice.h gzstate.h gscoord.h
  199.  
  200. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  201.   gxfixed.h gxmatrix.h gxbitmap.h gxdevmem.h gzstate.h gzdevice.h
  202.  
  203. gsfile.$(OBJ): gsfile.c $(GXERR) \
  204.   gsmatrix.h gxdevice.h gxdevmem.h
  205.  
  206. gsfont.$(OBJ): gsfont.c $(GXERR) \
  207.   gxdevice.h gxfixed.h gxmatrix.h gxfont.h gxfdir.h gzstate.h
  208.  
  209. gsimage.$(OBJ): gsimage.c $(GXERR) \
  210.   arch.h gxfixed.h gxarith.h gxmatrix.h gspaint.h gzcolor.h gzdevice.h gzpath.h gzstate.h gximage.h
  211.  
  212. gsim2out.$(OBJ): gsim2out.c $(GXERR) \
  213.   gsstate.h gsmatrix.h gscoord.h gxfixed.h gxtype1.h
  214.  
  215. gsline.$(OBJ): gsline.c $(GXERR) \
  216.   gxfixed.h gxmatrix.h gzstate.h gzline.h
  217.  
  218. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  219.   gxfixed.h gxarith.h gxmatrix.h
  220.  
  221. gsmisc.$(OBJ): gsmisc.c $(GX)
  222.  
  223. gspaint.$(OBJ): gspaint.c $(GX) \
  224.   gxfixed.h gxmatrix.h gspaint.h gzpath.h gzstate.h gzdevice.h gximage.h
  225.  
  226. gspath.$(OBJ): gspath.c $(GXERR) \
  227.   gxfixed.h gxmatrix.h gxpath.h gzstate.h
  228.  
  229. gspath2.$(OBJ): gspath2.c $(GXERR) \
  230.   gspath.h gxfixed.h gxmatrix.h gzstate.h gzpath.h gzdevice.h
  231.  
  232. gsstate.$(OBJ): gsstate.c $(GXERR) \
  233.   gxfixed.h gxmatrix.h gzstate.h gzcolor.h gzdevice.h gzht.h gzline.h gzpath.h
  234.  
  235. gstype1.$(OBJ): gstype1.c $(GXERR) \
  236.   gxarith.h gxfixed.h gxmatrix.h gxchar.h gxdevmem.h gxtype1.h gxfont1.h gzstate.h gzdevice.h gzpath.h
  237.  
  238. ###### Low-level facilities
  239.  
  240. gxcache.$(OBJ): gxcache.c $(GX) \
  241.   gserrors.h gxfixed.h gxmatrix.h gspaint.h gzdevice.h gzcolor.h gxdevmem.h gxfont.h gxfdir.h gxchar.h gzstate.h gzpath.h
  242.  
  243. gxcolor.$(OBJ): gxcolor.c $(GX) \
  244.   gxfixed.h gxmatrix.h gxdevice.h gzcolor.h gzht.h
  245.  
  246. gxdither.$(OBJ): gxdither.c $(GX) \
  247.   gxfixed.h gxmatrix.h gzstate.h gzdevice.h gzcolor.h gzht.h
  248.  
  249. gxdraw.$(OBJ): gxdraw.c $(GX) \
  250.   gxfixed.h gxmatrix.h gxbitmap.h gzcolor.h gzdevice.h gzstate.h
  251.  
  252. gxfill.$(OBJ): gxfill.c $(GXERR) \
  253.   gxfixed.h gxmatrix.h gxdevice.h gzcolor.h gzpath.h gzstate.h
  254.  
  255. gxht.$(OBJ): gxht.c $(GXERR) \
  256.   gxfixed.h gxmatrix.h gxbitmap.h gzstate.h gzcolor.h gzdevice.h gzht.h
  257.  
  258. gxpath.$(OBJ): gxpath.c $(GXERR) \
  259.   gxfixed.h gzpath.h
  260.  
  261. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  262.   gxfixed.h gxarith.h gzpath.h
  263.  
  264. gxstroke.$(OBJ): gxstroke.c $(GXERR) \
  265.   gxfixed.h gxarith.h gxmatrix.h gzstate.h gzcolor.h gzdevice.h gzline.h gzpath.h
  266.  
  267. ###### The "memory" device
  268.  
  269. gdevmem.$(OBJ): gdevmem.c $(AK) \
  270.   gs.h arch.h gxbitmap.h gsmatrix.h gxdevice.h gxdevmem.h
  271.     $(CCNA) gdevmem.c
  272.  
  273. ###### Files dependent on the set of installed devices.
  274. ###### Generating gdevs.h also generates gdevs.tl.
  275.  
  276. gdevs.h: gdevs.mak $(MAKEFILE) makefile
  277.     .$(DS)gsconfig $(DEVICES)
  278.  
  279. gdevs.$(OBJ): gdevs.c $(AK) gdevs.h
  280.  
  281. ###### On Unix, we pre-link all of the library except the back end.
  282. ###### On MS-DOS, we have to do the whole thing at once.
  283.  
  284. LIB=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) gsdevice.$(OBJ) \
  285.  gsfile.$(OBJ) gsfont.$(OBJ) gsimage.$(OBJ) gsim2out.$(OBJ) \
  286.  gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  287.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) gsstate.$(OBJ) gstype1.$(OBJ) \
  288.  gxcache.$(OBJ) gxcolor.$(OBJ) gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) \
  289.  gxht.$(OBJ) gxpath.$(OBJ) gxpath2.$(OBJ) gxstroke.$(OBJ) \
  290.  gdevmem.$(OBJ) gdevs.$(OBJ)
  291.  
  292. # ------------------------------ Interpreter ------------------------------ #
  293.  
  294. ###### Utilities
  295.  
  296. GH=$(AK) ghost.h
  297.  
  298. ialloc.$(OBJ): ialloc.c $(AK) std.h alloc.h
  299.     $(CCNA) ialloc.c
  300.  
  301. idebug.$(OBJ): idebug.c $(GH) name.h
  302.  
  303. idict.$(OBJ): idict.c $(GH) alloc.h errors.h name.h store.h dict.h
  304.  
  305. iinit.$(OBJ): iinit.c $(GH) dict.h oper.h store.h
  306.  
  307. iname.$(OBJ): iname.c $(GH) alloc.h errors.h name.h store.h
  308.  
  309. iscan.$(OBJ): iscan.c $(GH) arch.h alloc.h dict.h errors.h name.h store.h stream.h scanchar.h
  310.  
  311. iutil.$(OBJ): iutil.c $(GH) errors.h alloc.h oper.h store.h gsmatrix.h gxdevice.h gzcolor.h
  312.  
  313. stream.$(OBJ): stream.c $(AK) std.h stream.h scanchar.h gxfixed.h gstype1.h
  314.  
  315. ### Level 2 utilities
  316.  
  317. i2num.$(OBJ): i2num.c $(GH) arch.h errors.h stream.h i2num.h i2btoken.h
  318.  
  319. i2scan.$(OBJ): i2scan.c $(GH) arch.h errors.h alloc.h store.h stream.h i2bseq.h i2btoken.h i2num.h
  320.  
  321. ###### Non-graphics operators
  322.  
  323. OP=$(GH) errors.h oper.h
  324.  
  325. zarith.$(OBJ): zarith.c $(OP) store.h
  326.  
  327. zarray.$(OBJ): zarray.c $(OP) alloc.h store.h sstorei.h
  328.     $(CCNA) zarray.c
  329.  
  330. zcontrol.$(OBJ): zcontrol.c $(OP) estack.h store.h sstorei.h
  331.     $(CCNA) zcontrol.c
  332.  
  333. zdict.$(OBJ): zdict.c $(OP) dict.h store.h
  334.  
  335. zfile.$(OBJ): zfile.c $(OP) alloc.h stream.h store.h gsmatrix.h gxdevice.h gxdevmem.h
  336.  
  337. zgeneric.$(OBJ): zgeneric.c $(OP) dict.h estack.h store.h
  338.  
  339. zmath.$(OBJ): zmath.c $(OP) store.h
  340.  
  341. zmisc.$(OBJ): zmisc.c $(OP) alloc.h dict.h store.h gstype1.h gxfixed.h
  342.  
  343. zpacked.$(OBJ): zpacked.c $(OP) store.h
  344.  
  345. zrelbit.$(OBJ): zrelbit.c $(OP) store.h sstorei.h dict.h
  346.     $(CCNA) zrelbit.c
  347.  
  348. zstack.$(OBJ): zstack.c $(OP) store.h sstorei.h
  349.     $(CCNA) zstack.c
  350.  
  351. zstring.$(OBJ): zstring.c $(OP) alloc.h store.h stream.h
  352.  
  353. ztype.$(OBJ): ztype.c $(OP) dict.h name.h stream.h store.h
  354.  
  355. zvmem.$(OBJ): zvmem.c $(OP) alloc.h state.h store.h gsmatrix.h gsstate.h
  356.  
  357. ### Level 2 non-graphics operators
  358.  
  359. z2bseq.$(OBJ): z2bseq.c $(OP) stream.h name.h i2btoken.h i2bseq.h
  360.  
  361. ###### Graphics operators
  362.  
  363. zchar.$(OBJ): zchar.c $(OP) gxmatrix.h gschar.h gstype1.h gxdevice.h gxfixed.h gxfont.h gxfont1.h gzpath.h gzstate.h alloc.h dict.h font.h estack.h state.h store.h
  364.  
  365. zcolor.$(OBJ): zcolor.c $(OP) alloc.h gsmatrix.h gsstate.h state.h store.h
  366.  
  367. zdevice.$(OBJ): zdevice.c $(OP) alloc.h state.h gsmatrix.h gsstate.h gxdevice.h store.h
  368.  
  369. zfont.$(OBJ): zfont.c $(OP) gsmatrix.h gxdevice.h gxfont.h gxfont1.h alloc.h font.h dict.h name.h state.h store.h
  370.  
  371. zgstate.$(OBJ): zgstate.c $(OP) alloc.h gsmatrix.h gsstate.h state.h store.h
  372.  
  373. zht.$(OBJ): zht.c $(OP) alloc.h estack.h gsmatrix.h gsstate.h state.h store.h
  374.  
  375. zmatrix.$(OBJ): zmatrix.c $(OP) gsmatrix.h state.h gscoord.h store.h
  376.  
  377. zpaint.$(OBJ): zpaint.c $(OP) alloc.h estack.h gsmatrix.h gspaint.h state.h store.h
  378.  
  379. zpath.$(OBJ): zpath.c $(OP) gsmatrix.h gspath.h state.h store.h
  380.  
  381. zpath2.$(OBJ): zpath2.c $(OP) alloc.h estack.h gspath.h state.h store.h
  382.  
  383. ### Level 2 graphics operators
  384.  
  385. z2path.$(OBJ): z2path.c $(OP) state.h stream.h i2num.h
  386.  
  387. ###### Linking
  388.  
  389. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) iinit.$(OBJ) iname.$(OBJ) \
  390.  interp.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) stream.$(OBJ) \
  391.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) zfile.$(OBJ) \
  392.  zgeneric.$(OBJ) zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zrelbit.$(OBJ) \
  393.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  394.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zdevice.$(OBJ) zgstate.$(OBJ) \
  395.  zht.$(OBJ) zmatrix.$(OBJ) zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  396.  
  397. INT2=i2num.$(OBJ) \
  398.  z2bseq.$(OBJ) \
  399.  z2path.$(OBJ)
  400.  
  401. # ----------------------------- Main program ------------------------------ #
  402.  
  403. # Utilities shared between platforms
  404.  
  405. gsmain.$(OBJ): gsmain.c $(GX) \
  406.   gsmatrix.h gxdevice.h
  407.  
  408. # Library test program driver
  409.  
  410. gt.$(OBJ): gt.c $(GX) \
  411.   gsmatrix.h gsstate.h gscoord.h gspaint.h gspath.h gxdevice.h
  412.  
  413. # Interpreter main program
  414.  
  415. interp.$(OBJ): interp.c $(GH) \
  416.   errors.h name.h dict.h oper.h store.h sstorei.h stream.h
  417.     $(CCINT) interp.c
  418.  
  419. gs.$(OBJ): gs.c $(GH) alloc.h store.h stream.h $(MAKEFILE)
  420.     $(CCA) -DGS_LIB_DEFAULT=$(Q)$(GS_LIB_DEFAULT)$(Q) gs.c
  421. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  422. #    Distributed by Free Software Foundation, Inc.
  423. #
  424. # This file is part of Ghostscript.
  425. #
  426. # Ghostscript is distributed in the hope that it will be useful, but
  427. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  428. # to anyone for the consequences of using it or for whether it serves any
  429. # particular purpose or works at all, unless he says so in writing.  Refer
  430. # to the Ghostscript General Public License for full details.
  431. #
  432. # Everyone is granted permission to copy, modify and redistribute
  433. # Ghostscript, but only under the conditions described in the Ghostscript
  434. # General Public License.  A copy of this license is supposed to have been
  435. # given to you along with Ghostscript so you can know your rights and
  436. # responsibilities.  It should be in a file named COPYING.  Among other
  437. # things, the copyright notice and this notice must be preserved on all
  438. # copies.
  439.  
  440. # makefile for Ghostscript device drivers.
  441.  
  442. # -------------------------------- Catalog ------------------------------- #
  443.  
  444. # It is possible to build Ghostscript with an arbitrary collection of
  445. # device drivers, although many drivers are supported only on a subset
  446. # of the target platforms.  The currently available drivers are:
  447.  
  448. # Displays:
  449. #    bgi    Borland Graphics Interface   [MS-DOS only]
  450. #    ega    EGA display   [MS-DOS only]
  451. #    ega_bios  EGA display using BIOS calls (very slow)   [MS-DOS only]
  452. #    mdb10    EIZO MDB-10 display (1024 x 768)   [MS-DOS only]
  453. #    sonyfb    Sony Microsystems monochrome display   [Sony only]
  454. #    sunview  SunView window system   [SunOS only]
  455. #    vga    VGA display   [MS-DOS only]
  456. #    x11    X Windows version 11, release >=3   [Unix only]
  457. # (NOTE: no more than one MS-DOS display driver may be included in
  458. #   any build.)
  459. # Printers:
  460. #    bj10e    Canon BubbleJet BJ10e  [MS-DOS only]
  461. #    deskjet  H-P DeskJet   [MS-DOS & Unix]
  462. #    epson    Epson dot matrix printers   [MS-DOS only]
  463. #    laserjet  H-P LaserJet   [MS-DOS & Unix]
  464. #    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  465. # ###    paintjet  H-P PaintJet color printer [Unix, tested on SunOS only]
  466. # ###      (NOT INCLUDED IN THIS RELEASE)
  467.  
  468. # If you add drivers, it would be nice if you kept each list
  469. # in alphabetical order.
  470.  
  471. # Each platform-specific makefile should contain a pair of lines of the form
  472. #    DEVICES=<dev1> ... <devn>
  473. #    DEVICE_OBJS=$(<dev1>_) ... $(<devn>_)
  474. # where dev1 ... devn are the devices to be included in the build.
  475. # dev1 will be used as the default device.  Don't forget the _s!
  476. # On MS-DOS platforms, the first of these lines must appear *before*,
  477. # and the second *after*, the lines
  478. #    (!)include gdevs.mak
  479. #    (!)include ghost.mak
  480. # in the makefile.  On Unix systems, the two device definition lines
  481. # may appear anywhere in the makefile.
  482. #
  483. # The executable must be linked with all the files named in DEVICE_OBJS.
  484. # On MS-DOS platforms, this is done by constructing a file called gdevs.tl,
  485. # to get around the limit on the length of a DOS command line.
  486.  
  487. # ---------------------------- End of catalog ---------------------------- #
  488.  
  489. # If you want to add a new device driver, the examples below should be
  490. # enough of a guide to the correct form for the makefile rules.
  491.  
  492. # All device drivers depend on the following
  493. # (note that we include some indirect dependencies explicitly):
  494.  
  495. GDEV=$(AK) gs.h gx.h gsmatrix.h gxbitmap.h gxdevice.h
  496.  
  497. ###### ------------------- MS-DOS display devices ------------------- ######
  498.  
  499. GDEVPCFB=gdevpcfb.h $(GDEV)
  500.  
  501. gdevegaa.$(OBJ): gdevegaa.asm
  502.  
  503. ### -------------------------- The EGA device -------------------------- ###
  504.  
  505. ETEST=ega.$(OBJ) trace.$(OBJ) $(ega_)
  506. ega.exe: $(ETEST) libc$(MM).tl
  507.     tlink /m /l $(LIBDIR)\c0$(MM) @ega.tl @libc$(MM).tl
  508.  
  509. ega.$(OBJ): ega.c $(GDEV)
  510.  
  511. ega_=gdevega.$(OBJ) gdevegaa.$(OBJ)
  512. ega.dev: $(ega_)
  513.     .$(DS)gssetdev ega.dev $(ega_)
  514.  
  515. gdevega.$(OBJ): gdevpcfb.c gdevega.h $(GDEVPCFB)
  516.     cp gdevega.h gdevxxfb.h
  517.     $(CCNA) gdevpcfb
  518.     rm gdevxxfb.h
  519.     cp gdevpcfb.obj gdevega.obj
  520.  
  521. ega_bios_=gdevegab.$(OBJ) gdevegaa.$(OBJ)
  522. ega_bios.dev: $(ega_bios_)
  523.     .$(DS)gssetdev ega_bios.dev $(ega_bios_)
  524.  
  525. gdevegab.$(OBJ): gdevegab.c $(GDEVPCFB)
  526.     $(CCNA) $(D_EGA) $*
  527.  
  528. ### -------------------------- The VGA device -------------------------- ###
  529.  
  530. vga_=gdevvga.$(OBJ) gdevegaa.$(OBJ)
  531. vga.dev: $(vga_)
  532.     .$(DS)gssetdev vga.dev $(vga_)
  533.  
  534. gdevvga.$(OBJ): gdevpcfb.c gdevvga.h $(GDEVPCFB)
  535.     cp gdevvga.h gdevxxfb.h
  536.     $(CCNA) gdevpcfb
  537.     rm gdevxxfb.h
  538.     cp gdevpcfb.obj gdevvga.obj
  539.  
  540. ### ---------------------- The EIZO MDB-10 device ---------------------- ###
  541.  
  542. mdb10_=gdevmd10.$(OBJ) gdevegaa.$(OBJ)
  543. mdb10.dev: $(mdb10_)
  544.     .$(DS)gssetdev mdb10.dev $(mdb10_)
  545.  
  546. gdevmd10.$(OBJ): gdevpcfb.c gdevmd10.h $(GDEVPCFB)
  547.     cp gdevmd10.h gdevxxfb.h
  548.     $(CCNA) gdevpcfb
  549.     rm gdevxxfb.h
  550.     cp gdevpcfb.obj gdevmd10.obj
  551.  
  552. ###### --------- The BGI (Borland Graphics Interface) device -------- ######
  553.  
  554. bgi_=gdevbgi.$(OBJ) egavga.$(OBJ)
  555. bgi.dev: $(bgi_)
  556.     .$(DS)gssetdev bgi.dev $(bgi_)
  557.  
  558. gdevbgi.$(OBJ): gdevbgi.c $(GDEV)
  559.     $(CCNA) $*
  560.  
  561. egavga.$(OBJ): $(COMPDIR)\egavga.bgi
  562.     bgiobj egavga
  563.  
  564. ###### --------------- Memory-buffered printer devices --------------- ######
  565.  
  566. gvirtmem.$(OBJ): gvirtmem.c gvirtmem.h
  567.  
  568. # Virtual memory test program -- requires VMDEBUG
  569.  
  570. gvm.exe: gvirtmem.$(OBJ) trace.$(OBJ)
  571.     tlink /m /l $(LIBDIR)\c0$(MM) gvirtmem trace,gvm,gvm,$(LIBDIR)\c$(MM)
  572.  
  573. PDEVH=$(GDEV) gxdevmem.h gvirtmem.h gdevprn.h
  574.  
  575. # We use CCNA only because the MS-DOS version of the driver
  576. # refers to stdprn, which is non-ANSI.
  577. gdevprn.$(OBJ): gdevprn.c $(PDEVH)
  578.     $(CCNA) $*
  579.  
  580. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  581.  
  582. bj10e_=gdevbj10.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  583. bj10e.dev: $(bj10e_)
  584.     .$(DS)gssetdev bj10e.dev $(bj10e_)
  585.  
  586. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  587.  
  588. ### ------------------ The H-P DeskJet printer device ------------------ ###
  589.  
  590. # Note that this shares code with the LaserJet device (below).
  591.  
  592. deskjet_=gdevdjet.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  593. deskjet.dev: $(deskjet_)
  594.     .$(DS)gssetdev deskjet.dev $(deskjet_)
  595.  
  596. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH)
  597.     $(CCA) -DLASER=0 gdevdjet.c
  598.  
  599. ### ----------------- The generic Epson printer device ----------------- ###
  600.  
  601. epson_=gdevepsn.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  602. epson.dev: $(epson_)
  603.     .$(DS)gssetdev epson.dev $(epson_)
  604.  
  605. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  606.  
  607. ### ------------------ The H-P LaserJet printer device ----------------- ###
  608.  
  609. # Note that this shares code with the DeskJet device (above).
  610.  
  611. laserjet_=gdevljet.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  612. laserjet.dev: $(laserjet_)
  613.     .$(DS)gssetdev laserjet.dev $(laserjet_)
  614.  
  615. gdevljet.$(OBJ): gdevdjet.c $(PDEVH)
  616.     cp gdevdjet.c gdevljet.c
  617.     $(CCA) -DLASER=1 gdevljet.c
  618.     rm gdevljet.c
  619.  
  620. ### ------------ The H-P PaintJet color printer device ----------------- ###
  621. ### Note: this driver was contributed by users:                          ###
  622. ###       please contact marc@vlsi.polymtl.ca if you have questions.     ###
  623.  
  624. ### This driver was not ready to be included in release 2.0.
  625. ### Do not attempt to use it: the files are not included in the fileset.
  626.  
  627. PJETH=$(GDEV) gdevprn.h gdevpjet.h
  628.  
  629. paintjet_=gdevpjet.$(OBJ)
  630. paintjet.dev: $(paintjet_)
  631.     .$(DS)gssetdev paintjet.dev $(paintjet_)
  632.  
  633. gdevpjet.$(OBJ): gdevpjet.c $(PJETH)
  634.  
  635. ###### ------------------ Sony frame buffer device ----------------- ######
  636.  
  637. sonyfb_=gdevsnfb.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  638. sonyfb.dev: $(sonyfb_)
  639.     .$(DS)gssetdev sonyfb.dev $(sonyfb_)
  640.  
  641. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  642.     $(CCA) gdevsnfb.c
  643.  
  644. ###### ----------------- Sony NWP533 printer device ----------------- ######
  645.  
  646. nwp533_=gdevn533.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  647. nwp533.dev: $(nwp533_)
  648.     .$(DS)gssetdev nwp533.dev $(nwp533_)
  649.  
  650. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  651.     $(CCA) gdevn533.c
  652.  
  653. ###### --------------------- The SunView device --------------------- ######
  654.  
  655. sunview_=gdevsun.$(OBJ)
  656. sunview.dev: $(sunview_)
  657.     .$(DS)gssetdev sunview.dev $(sunview_)
  658.  
  659. gdevsun.$(OBJ): gdevsun.c $(GDEV)
  660.  
  661. ###### ----------------------- The X11 device ----------------------- ######
  662.  
  663. x11_=gdevx.$(OBJ)
  664. x11.dev: $(x11_)
  665.     .$(DS)gssetdev x11.dev $(x11_)
  666.  
  667. ### Note: if the X11 client header libraries are not on /usr/include/X11,
  668. ### you may have to change the compilation line below to add a -I switch.
  669. ### For example, if the header files are in /usr/local/X/include/X11,
  670. ### you must add the switch -I/usr/local/X/include.
  671. gdevx.$(OBJ): gdevx.c $(GDEV) gdevx.h
  672.     $(CCA) -I/usr/local/X/include gdevx.c
  673. #    Copyright (C) 1990 Aladdin Enterprises.  All rights reserved.
  674. #    Distributed by Free Software Foundation, Inc.
  675. #
  676. # This file is part of Ghostscript.
  677. #
  678. # Ghostscript is distributed in the hope that it will be useful, but
  679. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  680. # to anyone for the consequences of using it or for whether it serves any
  681. # particular purpose or works at all, unless he says so in writing.  Refer
  682. # to the Ghostscript General Public License for full details.
  683. #
  684. # Everyone is granted permission to copy, modify and redistribute
  685. # Ghostscript, but only under the conditions described in the Ghostscript
  686. # General Public License.  A copy of this license is supposed to have been
  687. # given to you along with Ghostscript so you can know your rights and
  688. # responsibilities.  It should be in a file named COPYING.  Among other
  689. # things, the copyright notice and this notice must be preserved on all
  690. # copies.
  691.  
  692. # Partial makefile for Ghostscript, common to all Unix configurations.
  693.  
  694. # This is the last part of the makefile for Unix configurations.
  695. # Since Unix make doesn't have an 'include' facility, we concatenate
  696. # the various parts of the makefile together by brute force (in tar_gs).
  697.  
  698. # -------------------------------- Library -------------------------------- #
  699.  
  700. ## The Unix platform
  701.  
  702. PLATUNIX=gp_unix.$(OBJ)
  703.  
  704. gp_unix.$(OBJ): gp_unix.c
  705.  
  706. # -------------------------- Auxiliary programs --------------------------- #
  707.  
  708. ansi2knr$(XE):
  709.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  710.  
  711. genarch$(XE): genarch.c
  712.     $(CC) -o genarch$(XE) $(CFLAGS) genarch.c
  713.  
  714. # ----------------------------- Main program ------------------------------ #
  715.  
  716. # (Dummy) tracing package
  717.  
  718. utrace.$(OBJ): utrace.c cframe_.h
  719.  
  720. # Main program
  721.  
  722. ALLUNIX=gsmain.$(OBJ) utrace.$(OBJ) $(LIB) $(PLATUNIX) $(DEVICE_OBJS)
  723.  
  724. # Library test programs
  725.  
  726. GTUNIX=gt.$(OBJ) $(ALLUNIX)
  727. gt: $(GTUNIX)
  728.     $(CC) $(CFLAGS) $(LDPLAT) -o gt $(GTUNIX) $(EXTRALIBS) -lm
  729.  
  730. # Interpreter main program
  731.  
  732. GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  733. gs: $(GSUNIX) $(INT2)
  734.     $(CC) $(CFLAGS) $(LDPLAT) -o gs $(GSUNIX) $(EXTRALIBS) -lm
  735.